(function () {
    const ul = document.querySelector('.layui-nav.layui-nav-tree');
    ul.addEventListener('click', ulFn, true);

    function ulFn(event) {
        if (event.target.classList.contains('side-pic')) {
            let cid = event.target.dataset.cid;
            window.location.href = `./list.html?cid=${cid}`;
        }
    };

    const li = document.querySelector('.layui-nav-item.layui-dl');


})();